package run.siyuan.jdk.设计模式.抽象工厂模式.抽象工厂模式案例1;

/**
 * @className: FemaleFactory
 * @Description: TODO
 * @author: siyuan
 * @date: 2022/3/11 6:43 PM
 */
public class FemaleFactory implements HumanFactory {
    //生产出黑人女性
    public Human createBlackHuman() {
        return new FemaleBlackHuman();
    }

    //生产出白人女性
    public Human createWhiteHuman() {
        return new FemaleWhiteHuman();
    }

    //生产出黄人女性
    public Human createYellowHuman() {
        return new FemaleYellowHuman();
    }
}